package com.gwclh.personnel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 员工离职记录表
 * </p>
 *
 * @author gzhhh
 * @since 2020-07-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_dismission")
@ApiModel(value="Dismission对象", description="员工离职记录表")
public class Dismission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "员工id")
    private Integer empId;

    @ApiModelProperty(value = "离职类型，1主动辞职，2辞退，3退休，4开除，5试用不通过，默认值1")
    private Integer disType;

    @ApiModelProperty(value = "离职日期")
    private Date disDate;

    @ApiModelProperty(value = "去向")
    private String direction;

    @ApiModelProperty(value = "是否去人才库，0否，1是，默认值1")
    private Boolean isToTalent;

    @ApiModelProperty(value = "备注")
    private String disRemark;

    @ApiModelProperty(value = "操作人id")
    private Integer operId;

    @ApiModelProperty(value = "操作时间，自动填充")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;


}
